import 'package:flutter/material.dart';

/// ========================================================
/// =======================Animation========================
/// ========================================================

//import "package:flutter_cookbook/animation/fadeApp.dart";
// 淡入淡出
//void main() => runApp(FadeApp());

/// ========================================================
/// =========================Design=========================
/// ========================================================

//import "package:flutter_cookbook/design/drawerApp.dart";
//import "package:flutter_cookbook/design/snackBarsApp.dart";
//import "package:flutter_cookbook/design/fontsApp.dart";
//import "package:flutter_cookbook/design/updateOrientationApp.dart";
//import "package:flutter_cookbook/design/themeApp.dart";
//import "package:flutter_cookbook/design/tabApp.dart";

// 侧滑栏
//void main() => runApp(DrawerApp());
// SnackBar显示
//void main() => runApp(SnackBarsApp());
// 第三方包字体资源使用
//void main() => runApp(FontsApp());
// 根据方向更新UI
//void main() => runApp(UpdateOrientationApp());
// 主题
//void main() => runApp(ThemeApp());
// TabView
//void main() => runApp(TabApp());

/// ========================================================
/// ==========================Form==========================
/// ========================================================

//import "package:flutter_cookbook/form/validationFormApp.dart";
//import "package:flutter_cookbook/form/focusChangeApp.dart";
//import "package:flutter_cookbook/form/textChangeApp.dart";
//import "package:flutter_cookbook/form/retrieveTextApp.dart";

// 表单验证
//void main() => runApp(ValidationFormApp());
// 改变焦点
//void main() => runApp(FocusChangeApp());
// 文本输入监听
//void main() => runApp(TextChangeApp());
// 获取文本内容
//void main() => runApp(RetrieveTextApp());

/// ========================================================
/// ========================Gesture=========================
/// ========================================================
//import "package:flutter_cookbook/gesture/touchRipplesApp.dart";
//import "package:flutter_cookbook/gesture/handingTapApp.dart";
//import "package:flutter_cookbook/gesture/swipeDismissApp.dart";

// 为按钮添加Ripple效果
//void main() => runApp(TouchRipplesApp());
// 处理点击
//void main() => runApp(HandingTapApp());
// 侧滑删除
//void main() => runApp(SwipeDismissApp());

/// ========================================================
/// ==========================Image=========================
/// ========================================================
//import "package:flutter_cookbook/image/displayNetworkApp.dart";
//import "package:flutter_cookbook/image/fadeInImageApp.dart";
//import "package:flutter_cookbook/image/cachedImageApp.dart";

// 侧滑删除
//void main() => runApp(DisplayNetworkApp());
// 淡出图片
//void main() => runApp(FadeInImageApp());
// 网络缓存图片
//void main() => runApp(CachedImageApp());

/// ========================================================
/// ==========================List==========================
/// ========================================================

//import "package:flutter_cookbook/list/basicListApp.dart";
//import "package:flutter_cookbook/list/horizontalListApp.dart";
//import "package:flutter_cookbook/list/gridListApp.dart";
//import "package:flutter_cookbook/list/differentTypesApp.dart";

// 基础列表
//void main() => runApp(BasicListApp());
// 横向列表
//void main() => runApp(HorizontalListApp());
// 表格列表
//void main() => runApp(GridListApp());
// 不同类型表格
//void main() => runApp(DifferentTypesApp());

/// ========================================================
/// =======================Navigation=======================
/// ========================================================

//import "package:flutter_cookbook/navigation/animatingScreenApp.dart";
//import "package:flutter_cookbook/navigation/navigatorScreenApp.dart";
//import "package:flutter_cookbook/navigation/nameRouteApp.dart";
//import "package:flutter_cookbook/navigation/returnDataApp.dart";
//import "package:flutter_cookbook/navigation/sendDataApp.dart";

// 动画切换页面
//void main() => runApp(AnimatingScreenApp());
// 使用navigator跳转到第二个页面
//void main() => runApp(NavigatorScreenApp());
// 使用pushNamed方法跳转页面
//void main() => runApp(NameRouteApp());
// 第二个页面返回数据
//void main() => runApp(ReturnDataApp());
// 向第二个页面传递数据
//void main() => runApp(SendDataApp());

/// ========================================================
/// =========================Network========================
/// ========================================================

import "package:flutter_cookbook/network/fetchDataApp.dart";
//import "package:flutter_cookbook/network/isolateDataApp.dart";
//import "package:flutter_cookbook/network/webSocketApp.dart";

// 加载网络数据，添加请求头
void main() => runApp(FetchDataApp());
// 后台处理数据
//void main() => runApp(IsolateDataApp());
// WebSocket使用
//void main() => runApp(WebSocketApp());

/// ========================================================
/// =======================Persistence======================
/// ========================================================

//import "package:flutter_cookbook/persistence/fileApp.dart";
//import "package:flutter_cookbook/persistence/sharedPreferencesApp.dart";

// 获取文件路径
//void main() => runApp(FileApp());
// SharedPreferences存取
//void main() => runApp(SharedPreferencesApp());

/// ========================================================
/// ==========================Test==========================
/// ========================================================

//import "package:flutter_cookbook/test_integration/integrationApp.dart";
//import "package:flutter_cookbook/test_integration/listApp.dart";
//import "package:flutter_cookbook/test_unit/mockApp.dart";

// Integration测试
//void main() => runApp(IntegrationApp());
// 长列表测试
//void main() => runApp(ListApp());
// mock测试
//void main() => runApp(MockApp());
